<div  class="with-padding">
	<select id="search_select" class="form-control pull-left" style="width:150px;" ng-model="selectType" ng-change="update()" ng-options="item.id as item.name for item in selectTypes">
	</select>
	<div class="input-group pull-left "style="width:200px;padding:0px;">
	    <input id="search_input" ng-model="content" ng-change="update2()" type="text" class="form-control" >
	</div>
	<select id="search_select2" class="form-control pull-left" style="width:150px;" ng-model="selectClass" ng-options="item.id as item.name for item in selectClasses" ng-change="update3()">
	</select>

    <button id="search_send_button" ng-click="search()" class="btn btn-default  btn-primary" type="button">搜索</button>
    <button ng-click="reload()" class="btn btn-default  btn-primary" type="button">显示全部</button>
    <div class="pull-right">
        <button  ng-click="jumpToUrl('/teachers_add')"type="button" class="btn btn-primary ">新建</button>
    </div>
</div>
<table class="table">
    <thead>
	    <tr>
	    	<th>序号</th>
	    	<th>姓名</th>
	    	<th>性别</th>
	    	<th>所教科目</th>
	    	<th>身份证号</th>
	    	<th>电话</th>	    	
	    	<th>操作</th>
	    </tr>
  	</thead>
  	<tbody>
	    <tr ng-repeat="teacher in teachers">
	    	<td>{{$index+1}}</td>
	    	<td>{{teacher.name}}</td>
	    	<td>{{teacher.sex}}</td>
	    	<td>{{teacher.subject_name}}</td>
	    	<td>{{teacher.nativeid}}</td>
	    	<td>{{teacher.tel}}</td>	
	    	<td >
	    		<button ng-click="delete(teacher)" class="icon-trash btn btn-sm text-warning"></button>
	    		<a href="#/teachers_add/{{teacher.id}}"><button  class="icon-pencil btn btn-sm text-primary"></button></a>
	    	</td>
	    </tr>
  	</tbody>
</table>
<div  class="with-padding">
	<ul class="pager">
	    <li class="previous"><a href="#">« 上一页</a></li>
	    <li><a href="#">1</a></li>
	    <li><a href="#">2</a></li>
	    <li class="active"><a href="#">3</a></li>
	    <li><a href="#">4</a></li>
	    <li><a href="#">5</a></li>
	    <li><a href="###" data-toggle="pager" data-placement="top">...</a></li>
	    <li><a href="#">10</a></li>
	    <li class="next"><a href="#">下一页 »</a></li>
	 </ul>
</div>
